import yagmail

def send_email():
    mail =yagmail.SMTP(user='3409851406@qq.com',password='uyziigxnldbpdbga',host='smtp.qq.com')
    mail.send(to='3409851406@qq.com',subject="图书管理系统接口测试报告",contents=['api_test_report.html','api_test.log'])

